package com.book.service.impl.impl;

import com.book.pojo.Order;
import com.book.service.mapper.OrderMapper;
import com.book.service.impl.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author xuchangshuo
 * @date 2020/10/30 14:05
 */
@Service
public class OrderServiceImpl implements OrderService {


    @Autowired
    private OrderMapper orderMapper;

    @Override
    public List findAllOrder() {
        List<Order> orders = orderMapper.selectAll();
        return orders;
    }
}
